.heart-image {
    opacity: 0;
    width: clamp(1.5rem, 5vw, 4rem);
    height: clamp(1.5rem, 5vw, 4rem);
    margin-top: 0.25em;
    cursor: pointer;
}

.heart-label {
    display: block;
    font-family: "Candy";
    font-size: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    margin-top: 0.75em;
}

.heart-image.fade-in {
    opacity: 1;
    animation: heartbeat-fadein 2s ease forwards;
}

@keyframes heartbeat-fadein {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartbeat {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }

    10% {
        transform: scale(1.18);
        filter: drop-shadow(0 6px 10px rgba(255, 0, 0, 0.28));
    }

    20% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }

    30% {
        transform: scale(1.12);
        filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.32));
    }

    40% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }
}

.heart-image.pulse {
    transform-origin: center center;
    animation: heartbeat 1.25s cubic-bezier(.215, .61, .355, 1) infinite;
    will-change: transform, filter;
}

@media (max-width: 420px) {
    .heart-image.pulse {
        animation-duration: 1.5s;
    }
}

.heart-image.pulse:hover {
    animation-play-state: paused;
}

.store-bible-treasure-dialog {
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    padding: 1rem;
    width: min(420px, calc(100% - 2rem));
    max-width: 420px;
    position: fixed;
    left: 50%;
    top: 33vh;
    transform: translateX(-50%);
    margin: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.store-bible-treasure-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.store-bible-treasure-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.store-bible-treasure-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.store-bible-treasure-select {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    background: #fff;
}

.store-bible-treasure-create-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.store-bible-treasure-create-input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    font-size: 0.95rem;
}

.store-bible-treasure-create-message {
    min-height: 1.1rem;
    margin: 0 0 0.45rem;
    font-size: 0.83rem;
    color: #4a4a4a;
}

.store-bible-treasure-btn-create {
    background: #f4f8ff;
    color: #1d3f8f;
    border-color: #b8c7ea;
}

.store-bible-treasure-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.store-bible-treasure-btn {
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.store-bible-treasure-btn-cancel {
    background: #f6f6f6;
    color: #333;
}

.store-bible-treasure-btn-store {
    background: #1d3f8f;
    color: #fff;
    border-color: #17377e;
}

.store-bible-treasure-btn:hover {
    filter: brightness(0.98);
}
